@Service
public class SongService {
    @Autowired
    private SongRepository songRepository;

    public List<Song> getSongsByPlaylistId(Long playlistId) {
        return songRepository.findByPlaylistId(playlistId);
    }

    // 其他歌曲相关方法...
}
